<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title> <script src="../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<mytest></mytest>
		</div>
		<template id="item">
			<div>
				<button type="button" @click="count++">加加1</button>
				<p>{{count}}</p>
			</div>
		</template>
		<script type="text/javascript">
			Vue.component('mytest',{
				template:"#item",
				data() {
					return {
						count: 0
					}
				},
			})
			var vm = new Vue({
				el:"#app",
				methods:{
					test(){
					}
				}
			})
			
		</script>
	</body>
</html>
